import request from '@/utils/request'

// 查询档案文件列表
export function listAmArchive(query) {
  return request({
    url: '/am/amArchive/list',
    method: 'get',
    params: query
  })
}

// 查询档案文件详细
export function getAmArchive(id) {
  return request({
    url: '/am/amArchive/' + id,
    method: 'get'
  })
}

// 新增档案文件
export function addAmArchive(data) {
  return request({
    url: '/am/amArchive',
    method: 'post',
    data: data
  })
}

// 修改档案文件
export function updateAmArchive(data) {
  return request({
    url: '/am/amArchive',
    method: 'put',
    data: data
  })
}

// 删除档案文件
export function delAmArchive(id) {
  return request({
    url: '/am/amArchive/' + id,
    method: 'delete'
  })
}



// 查询文件夹下文件
export function queryFileByFolderId(id){
    return request({
        url: '/am/amArchive/queryFileByFolderId/'+id,
        method: 'get'
    })
}
